#include "TraceLog.h"
#include "spdlog/spdlog.h"


void EbsLogPrint(void *ptr, int level, char *cTmp)
{
    std::string strModulename;
    switch (level)
    {
        case TRACE_LOG_LEVEL_DEBUG:
            spdlog::debug("{}", cTmp);
            break;
        case TRACE_LOG_LEVEL_INFO:
            spdlog::info("{}", cTmp);
            break;
        case TRACE_LOG_LEVEL_WARNING:
            spdlog::warn("{}", cTmp);
            break;
        case TRACE_LOG_LEVEL_ERROR:
            spdlog::error("{}", cTmp);
            break;
        default:
            spdlog::trace("{}", cTmp);
            break;
    }
}
